/**
 * 
 */
package net.sf.cldsql.dj.container;

import java.lang.reflect.Method;

import net.sf.cldsql.dj.container.base.DiAop;
import net.sf.cldsql.dj.container.base.DiContext;

/**
 * DiTestAop
 */
public class DiTestAop implements DiAop<TestBean> {
    @SuppressWarnings("unused")
    private DiContainer container;
    public void before(DiContext ctx, TestBean delegate, Method method, Object[] args) {
        delegate.setValue(ctx, "a");
    }
    public void after(DiContext ctx, TestBean delegate, Method method, Object[] args) {
        delegate.setValue(ctx, null);
    }
    public void error(DiContext ctx, TestBean delegate, Method method, Object[] args, Exception e) {
        e.printStackTrace(System.out);
    }
    public void setContainer(DiContainer container) {
        this.container = container;
    }
}
